package hapi.ui;

import hapi.event.Notifier;

typedef PressEvent = UserInterfaceEvent<Pressable>;
typedef ReleaseEvent = UserInterfaceEvent<Pressable>;

interface Pressable {
	public var onPress(getOnPress, null):Notifier<PressEvent>;
	public var onRelease(getOnRelease, null):Notifier<ReleaseEvent>;
	
	public function isPressed():Bool;
	public function press():Void;
	public function release():Void;
}